package com.css.fxfzcpxx.modules.thematicMap.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.multipart.MultipartFile;

import java.util.Date;

@Data
@ExcelTarget("ThematicMap")
public class ThematicMap {
    //主键id
    private String id;

    @Excel(name = "编号", orderNum = "0", width = 15)
    private String number;

    //资料名称
    @Excel(name = "资料名称", orderNum = "0", width = 15)
    private String meansName;
    //资料类别
    private String meansType;
    //发布栏目
    @Excel(name = "发布栏目", orderNum = "0", width = 15)
    private String releaseColumn;
    //发布状态0已发布1未发布
    @Excel(name = "发布状态", orderNum = "0", width = 15,replace = {"已发布_0", "未发布_1"})
    private String releaseStatus;
    //发布日期
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "发布日期", orderNum = "0", width = 15,format = "yyyy-MM-dd")
    private Date releaseDate;

    //比例尺
    private String plottingScale;

    @Excel(name = "数据来源", orderNum = "0", width = 15,replace = {"地震灾害风险产品信息服务系统_0", "地震灾害损失预评估系统_5",
            "地震现场灾害损失调查与评估系统_6", "地震地质灾害评估系统_7", "地震活动断层探察管理系统_8","地震安全保障服务系统_10"})
    private String flag;

    //省
    @Excel(name = "省", orderNum = "0", width = 15)
    private String province;
    //市
    @Excel(name = "市", orderNum = "0", width = 15)
    private String city;
    //区县
    @Excel(name = "区县", orderNum = "0", width = 15)
    private String county;

    //图片文件
    private String pictureFile;
    //图片描述
    @Excel(name = "图片描述", orderNum = "0", width = 15)
    private String pictureDescribe;
    //关键字
    @Excel(name = "关键字", orderNum = "0", width = 15)
    private String keyword;
    //备注
    @Excel(name = "备注", orderNum = "0", width = 15)
    private String remark;

    @Excel(name = "备注1",orderNum = "0",width = 15)
    private String notes;

    //创建人
    private String createUser;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    //更新人
    private String updateUser;
    //更新时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    //删除标志0正常1删除
    private String delFlag;

    //出图时间
    private Date plotTime;

    //制图单位
    @Excel(name = "制图单位", orderNum = "0", width = 15)
    private String draftingUnit;

    //发布单位
    //@Excel(name = "发布单位", orderNum = "0", width = 15)
    private String publishingUnit;

    private String magnitude;//震级

    private String type;//类型 0表示断层分布图 1表示地震构造图（用于活断层）

    //灾害类型（用于地质灾害）
    private String disasterType;
}
